<template>
  <div class="tanxin banxin rm">
    <div class="tanxin banxin ">
      <ul class="rm_1">
        <li v-for="item in datas" :key="item.id" @click="$router.push(`/goodsdetail/${item.id}`)"  >
          <img
            :src="'http://sc.wolfcode.cn' + item.coverImg"
            alt=""
            class="igm_jp_1"
          />
          <img
            src="../../assets/images/home/hot-j.png"
            alt=""
            class="igm_jp_2"
            v-show="item.isHotSale"
          />
          <img
            src="../../assets/images/home/new-j.png"
            alt=""
            class="igm_jp_2"
            v-show="item.isLatest"
          />
          <p class="p1">{{ item.name }}</p>
          <p class="p2">
            {{ item.coin }}
            <img
              src="../../assets/images/home/monad.png"
              alt=""
              class="igm_jp_3"
            />
          </p>
          <button>立即兑换</button>
        </li>
      </ul>
    </div>

  </div>
</template>

<script>


export default {
  data() {
    return {
      goodsVal:{},
      isShow: false,
    };
  },
  props: ["datas"],
  // components:{
    
  // }
};
</script>
 
<style lang = "less" scoped>
@import "@/assets/base.less";
ul.rm_1 {
  transform: translateX(5px);
  flex-wrap: wrap;
  justify-content: flex-start !important;


  li {
    position: relative;
    transition: all 0.5s;
    display: inline-block;
    background-color: #fff;
    height: 412px;
    width: 280px;
    margin-right: 20px;
    margin-top: 30px;
    cursor: pointer;
    .igm_jp_1 {
      width: 100%;
      height: 250px;
    }
    .igm_jp_2 {
      width: 58px;
      position: absolute;
      top: 0;
      left: 0;
    }
    .p1 {
      text-align: center;
      font-size: 18px;
      font-family: SourceHanSansSC;
      color: #333333;
      line-height: 23px;
      margin: 20px 0;
    }

    .p2 {
      text-align: center;
      font-size: 18px;
      font-family: SourceHanSansSC;
      font-weight: bold;
      color: #fd604d;
      line-height: 23px;
      margin: 20px 0;
      .igm_jp_3 {
        width: 20px;
      }
    }

    button {
      display: block;
      margin: 20px auto;
      width: 100px;
      height: 36px;
      border: 1px solid #0a328e;
      cursor: pointer;
    }
  }

  li:hover {
    box-shadow: 0 5px 5px 5px rgb(183, 162, 162);
    transform: translateY(-10px);
    button {
      background-color: @blue;
      color: #fff;
    }
  }
}

</style>